<%--
  Created by IntelliJ IDEA.
  User: 22936
  Date: 2022/5/16
  Time: 17:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>密码找回</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            width: 100%;
            height: auto;
            background: url("./static/img/3.jpeg") no-repeat;
            background-size: 100% 750px;
        }

        form {
            width: 30%;
            height: 250px;
            margin: 18% auto 0;
            text-align: center;
        }

        span {
            display: inline-block;
            width: 100%;
            margin: 10px;
        }

        .span_btn input {
            margin: 0 50px;
        }
    </style>
</head>
<body>
<form method="post">
    <span>请输入你的用户名：<input type="text" id="userName" name="userName"></span>
    <span>请输入你的身份证号：<input type="text"></span>
    <span>请输入你的联系方式：<input type="text"></span>
    <span class="span_btn">
        <input type="button" onclick="submitInfo()" class="btn" value="提交信息">
        <input type="button" class="btn" value="返回" onclick="goBack()">
    </span>
</form>
</body>
<script src="./static/js/jquery-3.4.1.min.js"></script>
<script>
    function submitInfo() {
        $.post({
            url: "${pageContext.request.contextPath}/user/findPwd",
            data: {'userName':$("#userName").val()},
            success: function (data) {
                alert(data);
            }
        });
    }

    function goBack() {
        window.history.go(-1);
    }
</script>
</html>

